package com.gree.changying.widget.banner.bean;



/**
 * Create by 游德禄 on 2019-9-20
 * 图片单独存放
 */

public class Photo {
    /**
     * 当path时此值时，占一个空位置
     */
    public static final String EMPTY = "-";

    public static final int TYPE_PHOTO = 0;
    public static final int TYPE_VIDEO = 1 ;//视频
    public static final int TYPE_BARCODE = 2 ;
    public static final int TYPE_VOICE = 3 ;//语音
    private boolean enable = true;//是否可编辑
    /**
     * 绑定其他表ID
     */
    private String bindId;

    private String  productId ; //明细ID 维修故障里重传图片时赋值使用，不做关系绑定
    /**
     * 标记
     */
    private String tag ;
    /**
     * 物理路径
     */
    private String path ;
    /**
     * 网络路径
     */
    private String netPath;
    /**
     * 备注
     */
    private String remark;

    private int fileType = 0 ;//默认0 图片 1 视频 2 条码(图片和条码)

    private int type ;

    private boolean canEditTitle;

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    //条码
    private String barcode;

    //标题
    private String title;

    //位置
    private int position;


    private String saveId ;

    public String getSaveId() {
        return saveId;
    }

    public void setSaveId(String saveId) {
        this.saveId = saveId;
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    //背景图
    private int bg;

    public int getBg() {
        return bg;
    }

    public void setBg(int bg) {
        this.bg = bg;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getBarcode() {
        return barcode;
    }

    public void setBarcode(String barcode) {
        this.barcode = barcode;
    }

    public int getFileType() {
        return fileType;
    }

    public void setFileType(int fileType) {
        this.fileType = fileType;
    }

    public String getBindId() {
        return bindId;
    }

    public void setBindId(String bindId) {
        this.bindId = bindId;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public String getPath() {
        return path;
    }

    public void setPath(String path) {
        this.path = path;
    }

    public String getNetPath() {
        return netPath;
    }

    public void setNetPath(String netPath) {
        this.netPath = netPath;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public boolean isCanEditTitle() {
        return canEditTitle;
    }

    public void setCanEditTitle(boolean canEditTitle) {
        this.canEditTitle = canEditTitle;
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    private String programmeID;
    private String troubleID;
    private String wxjsmxguid;

    public String getProgrammeID() {
        return programmeID;
    }

    public void setProgrammeID(String programmeID) {
        this.programmeID = programmeID;
    }

    public String getTroubleID() {
        return troubleID;
    }

    public void setTroubleID(String troubleID) {
        this.troubleID = troubleID;
    }

    public String getWxjsmxguid() {
        return wxjsmxguid;
    }

    public void setWxjsmxguid(String wxjsmxguid) {
        this.wxjsmxguid = wxjsmxguid;
    }

    public static String getTypeName(int type){
        switch (type){
            case TYPE_VIDEO:
                return "视频";
            case TYPE_BARCODE:
                return "条码";
            case TYPE_VOICE:
                return "语音";
        }
        return "图片";
    }

    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }
}
